package com.donggua.aichebao.commonui.photo;

import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.donggua.aichebao.commonui.Dialog.DGDialogBase;
import com.donggua.aichebao.commonui.Dialog.DGFullDialog;
import com.donggua.aichebao.commonui.R;
import com.donggua.aichebao.commonui.info.InfoItemLayout;

/**
 * Created by Administrator on 2017-09-04.
 */

public class DGPhotoExampleDlg extends DGFullDialog implements View.OnClickListener {
    public DGPhotoExampleDlg(Context context) {
        super(context);

    }

    public void onCreate(Bundle bundle){
        super.onCreate(bundle);
        LinearLayout.LayoutParams fill_parent = new LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.FILL_PARENT,
                LinearLayout.LayoutParams.FILL_PARENT);
        View view = LayoutInflater.from(getContext()).inflate(R.layout.dg_photo_example_layout,null);
        setContentView(view,fill_parent);
        view.setOnClickListener(this);
        Button button = view.findViewById(R.id.btnOk);
        button.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        closeDialog();
    }
}
